package com.product.system.service.impl;

import com.product.system.domain.FactoryPosts;
import com.product.system.domain.FactoryStorage;
import com.product.system.domain.GoodsAndReceipt;
import com.product.system.domain.PostList;
import com.product.system.mapper.FactoryAndPostsMapper;
import com.product.system.service.FactoryAndPostsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FactoryAndPostsServiceImpl implements FactoryAndPostsService {

    @Autowired
    FactoryAndPostsMapper factoryAndPostsMapper;
    @Override
    public List<FactoryPosts> postsList() {
        return factoryAndPostsMapper.postsList();
    }

    /**
     * 负责人/联系人
     * @return
     */
    @Override
    public List<PostList> responsibility() {
        return factoryAndPostsMapper.responsibility();
    }

    @Override
    public List<GoodsAndReceipt> selectReceipt() {
        return factoryAndPostsMapper.selectReceipt();
    }

    @Override
    public void updateReceipt(GoodsAndReceipt andReceipt) {
        factoryAndPostsMapper.updateReceipt(andReceipt);
    }

    @Override
    public List<FactoryStorage> selectStorage() {
        return factoryAndPostsMapper.selectStorage();
    }

    @Override
    public List<GoodsAndReceipt> waitForList() {
        return factoryAndPostsMapper.waitForList();
    }

    @Override
    public List<GoodsAndReceipt> refuseList() {
        return factoryAndPostsMapper.refuseList();
    }

    @Override
    public void updateRefuse(GoodsAndReceipt andReceipt) {
        factoryAndPostsMapper.updateRefuse(andReceipt);
    }
}
